package domain.extendMappingSingleTable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Address {

    @Column(name = "address_detail")
    private String detail;
    @Column(name = "address_zip")
    private String zip;
    @Column(name = "address_country")
    private String country;

    public Address() {
    }

    public Address(String detail, String zip, String country) {
        this.detail = detail;
        this.zip = zip;
        this.country = country;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }
}
